﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"            
             xmlns:ig="http://schemas.infragistics.com/xaml" xmlns:igEditors="http://infragistics.com/Editors" x:Class="MarketDashboardModule.Views.UserControl1" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="468.05">
	<UserControl.Resources>
		<ControlTemplate x:Key="XamComboEditorControlTemplate1" TargetType="{x:Type igEditors:XamComboEditor}">
			<Border x:Name="MainBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
				<ComboBox x:Name="PART_FocusSite" BorderBrush="Transparent" BorderThickness="0" Background="Transparent" igEditors:XamComboEditor.ComboEditor="{Binding RelativeSource={RelativeSource TemplatedParent}}" ContextMenu="{TemplateBinding ContextMenu}" DisplayMemberPath="{Binding ItemsProvider.DisplayMemberPath, RelativeSource={RelativeSource TemplatedParent}}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" InputMethod.IsInputMethodEnabled="{TemplateBinding InputMethod.IsInputMethodEnabled}" IsDropDownOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, UpdateSourceTrigger=PropertyChanged}" IsEditable="{TemplateBinding IsEditable}" IsReadOnly="{TemplateBinding ReadOnly}" MaxDropDownHeight="{TemplateBinding MaxDropDownHeight}" InputMethod.PreferredImeState="{TemplateBinding InputMethod.PreferredImeState}" Padding="{TemplateBinding Padding}" Style="{TemplateBinding ComboBoxStyle}" SelectedValuePath="{Binding ItemsProvider.ValuePath, RelativeSource={RelativeSource TemplatedParent}}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
			</Border>
			<ControlTemplate.Triggers>
				<Trigger Property="IsInEditMode" Value="True">
					<Setter Property="IsTabStop" Value="False"/>
				</Trigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>
		
	</UserControl.Resources>	
    <Grid Background="White" FocusManager.FocusedElement="{Binding ElementName=txtSearch}">
    	<Grid.RowDefinitions>
    		<RowDefinition Height="32.667"/>
    		<RowDefinition/>
    	</Grid.RowDefinitions>
    	<ig:XamGrid ItemsSource="{Binding Stocks}" AutoGenerateColumns="True" Grid.Row="1" MinHeight="200"/>
    	<ig:XamMultiColumnComboEditor Height="21" VerticalAlignment="Center"
    		ItemsSource="{Binding Stocks}" DisplayMemberPath="Name" AutoGenerateColumns="False" MinWidth="200" EmptyText="Search..." d:LayoutOverrides="Width, GridBox" HorizontalAlignment="Left" Margin="5,0,0,0" Visibility="Hidden">
    		<ig:XamMultiColumnComboEditor.Columns>
    			<ig:TextComboColumn Key="Symbol" />
    			<ig:TextComboColumn Key="Name"/>				
    			<ig:TextComboColumn Key="LastSale">
    				<ig:TextComboColumn.HeaderTemplate>
    					<DataTemplate>
    						<TextBlock Text="test"/>
    					</DataTemplate>
    				</ig:TextComboColumn.HeaderTemplate>				
    			</ig:TextComboColumn>
    		</ig:XamMultiColumnComboEditor.Columns>
    	</ig:XamMultiColumnComboEditor>
    	<StackPanel Orientation="Horizontal" d:LayoutOverrides="Height">
    		<TextBlock Text="Search" VerticalAlignment="Center" FontWeight="Bold"/>
    		<TextBox x:Name="txtSearch" TextWrapping="Wrap" Height="24" VerticalAlignment="Center" FontWeight="Bold" Width="104" Margin="5,0,0,0"/>  
    	</StackPanel>  
    </Grid>
</UserControl>
